package com.example.firstboot.entity;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Properties;

@Component
@Data
public class Mail {

    private Properties properties;

    @Value("${mail.host}")
    private String host;

    @Value("${mail.transport.protocol}")
    private String protocol;

    @Value("${mail.smtp.auth}")
    private String auth;

    @Value("${mail.from}")
    private String from;

    @Value("${mail.auth.code}")
    private String code;

}
